package com.szq.netty.service;

import com.szq.netty.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * @ClassName: UserService
 * @Description:
 * @Author: szq
 * @Date: 2021-11-15 14:31:48
 */
public interface UserService {

    void save(User user);

    void deleteById(String id);

    User queryUserById(String id);

    Iterable<User> queryAll();

    Page<User> findByName(String name, PageRequest request);
}
